package com.ecoolex.chinadutyfree.retailer.core.mapper;

import com.ecoolex.chinadutyfree.retailer.entity.Coupon;
import com.ecoolex.chinadutyfree.retailer.entity.CouponExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface CouponMapper {
    long countByExample(CouponExample example);

    int deleteByExample(CouponExample example);

    int deleteByPrimaryKey(Integer couponId);

    int insert(Coupon record);

    int insertSelective(@Param("record") Coupon record, @Param("selective") Coupon.Column ... selective);

    Coupon selectOneByExample(CouponExample example);

    List<Coupon> selectByExample(CouponExample example);

    Coupon selectByPrimaryKey(Integer couponId);

    Coupon selectByPrimaryKeyWithLogicalDelete(@Param("couponId") Integer couponId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") Coupon record, @Param("example") CouponExample example, @Param("selective") Coupon.Column ... selective);

    int updateByExample(@Param("record") Coupon record, @Param("example") CouponExample example);

    int updateByPrimaryKeySelective(@Param("record") Coupon record, @Param("selective") Coupon.Column ... selective);

    int updateByPrimaryKey(Coupon record);

    int batchInsert(@Param("list") List<Coupon> list);

    int batchInsertSelective(@Param("list") List<Coupon> list, @Param("selective") Coupon.Column ... selective);

    int logicalDeleteByExample(@Param("example") CouponExample example);

    int logicalDeleteByPrimaryKey(Integer couponId);
}